/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author mehdi
 */
@Entity
public class Issus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
     private Long issId;
   
   private String cont;
   
   private String Ciss;
   
   private String Uissu;
   
   private String Dissu;
   
  
    @OneToMany(mappedBy="issus")
   public  List<Answer> answer;
    @ManyToOne()
    public AssessementL asml; 

    public Issus() {
    }

    public String getCiss() {
        return Ciss;
    }

    public void setCiss(String Ciss) {
        this.Ciss = Ciss;
    }

    public String getDissu() {
        return Dissu;
    }

    public void setDissu(String Dissu) {
        this.Dissu = Dissu;
    }

    public String getUissu() {
        return Uissu;
    }

    public void setUissu(String Uissu) {
        this.Uissu = Uissu;
    }

    public List<Answer> getAnswer() {
        return answer;
    }

    public void setAnswer(List<Answer> answer) {
        this.answer = answer;
    }

    public AssessementL getAsml() {
        return asml;
    }

    public void setAsml(AssessementL asml) {
        this.asml = asml;
    }

    public String getCont() {
        return cont;
    }

    public void setCont(String cont) {
        this.cont = cont;
    }
  

    public Long getId() {
        return issId;
    }

    public void setId(Long id) {
        this.issId = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (issId != null ? issId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Issus)) {
            return false;
        }
        Issus other = (Issus) object;
        if ((this.issId == null && other.issId != null) || (this.issId != null && !this.issId.equals(other.issId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "model.Issus[ id=" + issId + " ]";
    }
    
}
